import request from '@/utils/request'

/**
 * 售后管理主页分页查询
 * @param {查询条件} data
 */
export function listEgFeedbackMain(query) {
  return request({
    url: 'Buss/EgFeedbackMain/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增售后管理主页
 * @param data
 */
export function addEgFeedbackMain(data) {
  return request({
    url: 'Buss/EgFeedbackMain',
    method: 'post',
    data: data,
  })
}
/**
 * 修改售后管理主页
 * @param data
 */
export function updateEgFeedbackMain(data) {
  return request({
    url: 'Buss/EgFeedbackMain',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取售后管理主页详情
 * @param {Id}
 */
export function getEgFeedbackMain(id) {
  return request({
    url: 'Buss/EgFeedbackMain/' + id,
    method: 'get'
  })
}

/**
 * 删除售后管理主页
 * @param {主键} pid
 */
export function delEgFeedbackMain(pid) {
  return request({
    url: 'Buss/EgFeedbackMain/delete/' + pid,
    method: 'POST'
  })
}


export function listsaleorder(query) {
  return request({
    url: 'Buss/EgFeedbackMain/GetList_Ext',
    method: 'get',
    params: query,
  })
}

export function listsupp(query) {
  return request({
    url: 'Buss/EgFeedbackMain/list_supp',
    method: 'get',
    params: query,
  })
}

export function listcus(query) {
  return request({
    url: 'Buss/EgFeedbackMain/list_cus',
    method: 'get',
    params: query,
  })
} 